home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d13 / nm091.arc / EXAMPLE2.BAT < prev    next >
DOS Batch File  |  1991-05-29  |  1KB  |  31 lines

  1. @echo off
  2. rem ---- Turns of the echoing of Commands to the console
  3. :TOP
  4. rem ---- A marker so we can loop back to this point later
  5. NM /TDemonstrating_the_Now_Menu_Program
  6. rem ---- Call the NM program, letting it search for and load the CONFIG.NM
  7. rem ---- file.  Also overwrite any title in the config file with the one
  8. rem ---- specified on the command line.
  9. if exist $$temp$$.BAT goto RUN
  10. rem ---- if a file was created by NM then jump to the RUN marker to
  11. rem ---- execute the batch file we created
  12. goto EXIT
  13. rem ---- If no file was created then we are ready to quit, so go to the
  14. rem ---- exit marker
  15. :RUN
  16. rem ---- Another marker, this time for running our created batch file
  17. call $$temp$$
  18. rem ---- CALL the batch file (using the call command ensures that control
  19. rem ---- will return to this batch file after $$temp$$ executes
  20. pause
  21. rem ---- Wait until user sees result to continue on
  22. erase $$temp$$.BAT
  23. rem ---- we are done with our batch file, so lets erase it
  24. cls
  25. rem ---- CLear the Screen
  26. goto TOP
  27. rem ---- Jump back to the top to run the menu system again
  28. :EXIT
  29. rem ---- Another marker, this time for the spot to exit this batch file
  30. CLS
  31. rem ---- CLear the Screen